package com.hyxt.api;

import com.hyxt.DO.Entity;

import java.util.List;

/**
 *
 * @author wxf
 * @version v1.0
 * @Description oracle数据接口
 * @Date: Create in 12:40 2017/11/21
 * @Modifide By:
 **/
public interface OracleService {
    /**
     * 添加数据
     * @param record
     * @return
     */
    int insert(Entity record)throws Exception;


    /**
     * 根据主键id查询实体
     * @param record
     * @return
     * @throws Exception
     */
    Entity selectByPrimaryKey(Entity record)throws Exception;

    /**
     * 修改数据
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Entity record)throws Exception;

    /**|
     * 删除数据
     * @param record
     * @return
     */
    int deleteByPrimaryKey(Entity record)throws Exception;

    /**
     * 根据条件查询数据
     * @param record
     * @return
     * @throws Exception
     */
    public List selectData(Entity record)throws Exception;
}
